]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Don't remove the tray icons we don't add
authorGiovanni Campagna <gcampagna@src.gnome.org>
Thu, 28 Oct 2010 20:25:33 +0000 (22:25 +0200)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Fri, 29 Oct 2010 18:05:31 +0000 (20:05 +0200)
Tray icons replaced by a shell version are automatically filtered
and never make to the tray container, but when removed by the client
we were still trying to remove them from the tray, causing a warning.

https://bugzilla.gnome.org/show_bug.cgi?id=633028

js/ui/panel.js

index da1079c79a4b3d064c5c770eeab8c7c475de7308..eb1e4a378b4e6567333b0a71a07dbb7fb704c687 100644 (file)
@@ -903,7 +903,8 @@ Panel.prototype = {
     },
 
     _onTrayIconRemoved: function(o, icon) {
-        this._trayBox.remove_actor(icon);
+        if (icon.get_parent() != null)
+            this._trayBox.remove_actor(icon);
     },
 
     _addRipple : function(delay, time, startScale, startOpacity, finalScale, finalOpacity) {